package com.lcf.demo;

public class Person {
//    定义姓名和年龄
    private String name;
    private  int age;

//    定义参数
    public Person() {
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }
//    定义set和get
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
public void dispaly(String 缪宇明, int i){
    System.out.print("姓名：    " +  name + "\t"   +  "年龄：  "    + age );
}

    }



